import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import get from '@dfeidao/atom-web/local/get';
import fire from '@dfeidao/atom-web/msg/fire';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import error from '@dfeidao/atom-web/msgbox/error';
import success from '@dfeidao/atom-web/msgbox/success';
export default async function a002(fd: IFeidaoAiBrowserComponent) {
	// 删除

	const level_no = get(fd, 'level_no');
	const productid = get(fd, 'productid');
	const res = await nodejs('level-inf/zj-000001/s005', { productid, level_no });
	if (res === 'success') {
		success('成功');
		fd.data.node.querySelector<HTMLDivElement>('[zj2]').classList.add('display-n');
		fire('zj-000001', 'ec-001');
	} else if (res === 'fail') {
		error('失败');
	}
}
